<template>
	<view>
		<menuBox :menuInfo="menuInfo"></menuBox>
	</view>
</template>

<script>
	import menuBox from "@/wxcomponents/commonLayout/menu";
	import login from '@/libs/login.js';
	export default {
		data() {
			return {
				menuInfo: {
					base: {
						tit: ["企业名称", "实习时间"],
						menuProp: [
							"name",
							"time"
						]
					},
					list: [],
				}
			}
		},
		async onLoad() {
			let resp = await this.$http.post({
				url: "/enrollment/enterprise/getEnterpriseList",
				data: {}
			})
			this.menuInfo.list = resp.result.map((item, index) => {
				return {
					url: "./practiceApply?data=" + JSON.stringify(item),
					time: item.practiceStartTime.split(" ")[0] + "至" + item.practiceEndTime.split(" ")[0],
					name: this.shortStr(item.enterpriseName, 10),
					data: item
				}
			})
		},
		methods: {},
		components: {
			menuBox
		}
	}
</script>

<style lang="scss" scoped>

</style>
